package Test.Junit;

import static org.junit.Assert.*;

import java.rmi.RemoteException;

import org.junit.Before;
import org.junit.Test;

import PO.ResultMessage;
import VO.PlanVO;
import BussinessLogic.Planbl.PlanController;
import BussinessLogicService.PlanBL.PlanBLService;

public class TestForPlanController {

	PlanBLService plan;
	PlanVO vo ;

	@Before 
	public void setCon()
	{
		plan = new PlanController();
		vo =plan.getAll().get(0);
		System.out.println(vo.getDep());
	}
	@Test
	public void  testSet() throws RemoteException
	{
		assertEquals(plan.set(vo),ResultMessage.success);
	}
	

}
